//返回到演练大厅

var leaveclassroom =  {
		leaveclassroom_out : function() {
			var  suid = sessionStorage.getItem("suid_name");
			var crid = sessionStorage.getItem("crid");
			$.ajax({
				type : "GET",
				url : "http://127.0.0.1:8080/yl-websocket/transmit?param='m=leaveclassroom,suid=" + suid +",crid="+ crid +"&address=http://103.37.166.4:7777/StateGrid/cra.do",
				async: false,
				scriptCharset: 'utf-8', 
				success : function(param) {
//					alert(param);
					if(JSON.parse(param).stat == "1"){
					location.href='studentIndex.html';
					}else{
						
					}
				},
				error: function(){
				}
			});
		},
	}






$(function() {
	$("#studentscheme_gl").click(function(){
		
		leaveclassroom.leaveclassroom_out();
	
	});
	console.info(000);
	
});
